package com.treasure.common.reponse;

import lombok.Getter;

/**
 * @author sunhongmin
 * @date 2023/8/26 08:01
 * @description
 */
@Getter
public enum ResponseCodeEnum {
    SUCCESS(1000,"操作成功"),
    SERVICE_ERROR(2000,"业务异常"),
    AUTHORITY_ERROR(3000,"鉴权失败"),
    INTERNAL_ERROR(4000,"系统异常")
    ;

    private final Integer code;
    private final String message;

    ResponseCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
